In August 2015, Donald Lowman Jr. found out that he no longer would be eligible for unemployment benefits because he had been driving for Uber.

The Philadelphia man, who had lost his job as a behavior health specialist, was “self-employed,” according to Pennsylvania’s Department of Labor and Industry, which meant he was disqualified from collecting unemployment.

Five years later, in a ruling hailed as a victory for workers in the ongoing struggle for gig workers’ rights, the state’s top court reversed that decision: Lowman, a majority of judges said, was not self-employed and should have been eligible for benefits.